package com.longagoewk.springboot.service;

import com.longagoewk.springboot.dao.UserDao;
import com.longagoewk.springboot.entity.UserBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserDao userDao;

    //查看用户实体
    public UserBean getUser(UserBean user) {
        return userDao.getUser(user);
    }

    //更新密码
    public boolean updataUser(UserBean userBean) {
        return userDao.updataUser(userBean);
    }

}
